﻿using System.Linq;

namespace SalaryReport.Core
{
    public static class ArrayExtensions
    {
        public static T[] GetRow<T>(this T[,] data, int i)
        {
            return Enumerable.Range(1, data.GetLength(1)).Select(j => data[i, j]).ToArray();
        }
    }
}